const ajax = window.ajaxBusinessContract;

//收入核算列表
export const apiComputationIncomeList = (params) => ajax.request(`/v1/projectFinance/accounting/incomeList`, 'post', params, {
  showLoading: true
});

//收入 | 支出 核算统计
export const apiCalculateStatistics = (params) => ajax.request(`/v1/projectFinance/accounting/statistics`, 'post', params, {
  showLoading: true
});


//支出核算列表
export const apiComputationPayTree = (params) => ajax.request(`/v1/projectFinance/accounting/paymentList`, 'post', params, {
  showLoading: true
})

//收入核算导出
export const apiCashInExport = (params) => ajax.download(`/v1/projectFinance/accounting/incomeExport`, params, {
  showLoading: true,
  responseType: 'blob'
});

//支出核算导出
export const apiCashOutExport = (params) => ajax.download(`/v1/projectFinance/accounting/paymentExport`, params, {
  showLoading: true,
  responseType: 'blob'
});